<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('专家核查批次列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row" id="qushiquerenpici">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label style="width: 100px;">核查批次名称：</label>
                                <input type="text" name="picimingcheng"  v-model="picimingcheng"/>
                            </li>
                            <li>
                                <label>创建时间：</label>
                                <input type="text" class="" v-model="chuangjianshijian" placeholder="请选择创建时间" name="chuangjianshijian" id="chuangjianshijian_chaxun" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" @blur="getDate_chaxun"/>
                            </li>
                            <li>
                                <a class="btn btn-success btn-rounded btn-md" @click="bindPiciList"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-md" @click="refresh"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="col-sm-12 select-table table-striped">

                <div id="toolbar" role="group" style="margin-top: 10px;margin-bottom: 20px;">
                    <a class="btn btn-primary btn-rounded btn-md" @click="toAdd">
                        <i class="fa fa-plus"></i> 添加
                    </a>
                </div>

                <table class="table table-hover table-primary table-striped">
                    <thead>
                    <tr>
                        <th style="text-align: center; vertical-align: middle;">序号</th>
                        <th style="text-align: center; vertical-align: middle;">批次名称</th>
                        <th style="text-align: center; vertical-align: middle;">创建时间</th>
                        <th style="text-align: center; vertical-align: middle;">总人数</th>
                        <th style="text-align: center; vertical-align: middle;">未核查人数</th>
                        <th style="text-align: center; vertical-align: middle;">已核查人数</th>
                        <th style="text-align: center; vertical-align: middle;">详情</th>
                        <th style="text-align: center; vertical-align: middle;">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(piciitem,index) in picilist"  v-if="picilist.length > 0">
                        <td style="vertical-align: middle; text-align: center;" v-text="index+1"></td>
                        <td style="vertical-align: middle; text-align: center;" v-text="piciitem.picimingcheng"></td>
                        <td style="vertical-align: middle; text-align: center;" v-text="piciitem.kaishishijian"></td>
                        <td style="vertical-align: middle; text-align: center;" v-text="piciitem.renshu"></td>
                        <td style="vertical-align: middle; text-align: center;" v-text="piciitem.weihecha"></td>
                        <td style="vertical-align: middle; text-align: center;" v-text="piciitem.yihecha"></td>
                        <td style="vertical-align: middle; text-align: center;" v-text="">
                            <button class="btn btn-success btn-rounded btn-md" @click="toManage(piciitem)">查看</button>
                        </td>
                        <td style="vertical-align: middle; text-align: center;" v-text="">
                            <button class="btn btn-warning btn-rounded btn-md" @click="toModify(piciitem.id)">修改</button>
                            <button class="btn btn-danger btn-rounded btn-md" @click="Delete(piciitem.id)">删除</button>
                        </td>
                    </tr>
                    <tr v-if="picilist.length == 0">
                        <td style="text-align: center; vertical-align: middle" colspan="8">查无数据</td>
                    </tr>
                    </tbody>
                </table>

<!--                <div v-if="recordCount != '0'" class="my-page-navigation" style="text-align:center;">
                    <button class="btn btn-default" @click="firstPage">首页</button>
                    <button class="btn btn-default" @click="prePage">上一页</button>
                    <select class="custom-select border-secondary" v-model="pagesize">
                        <option value="10">10 条/页</option>
                        <option value="20">20 条/页</option>
                        <option value="30">30 条/页</option>
                        <option value="50">50 条/页</option>
                    </select>
                    <span v-text="pageindex + '  /  ' + pageCount" style="border-color: #6c757d"></span>
                    <span v-text="'共' + recordCount + '条'" style="border-color: #6c757d"></span>
                    <button class="btn btn-default" @click="nextPage">下一页</button>
                    <button class="btn btn-default" @click="lastPage">尾页</button>
                    <span style="border-color: #6c757d">跳到第</span>
                    <input type="text" class="form-control border-secondary" style="width:50px;display:inline;" v-model="targetpage" @keyup.enter="targetPage">
                    <span style="border-color: #6c757d">页</span>
                    <button class="btn btn-default" @click="targetPage">跳</button>
                </div>-->
            </div>


            <!-- 编辑专家变动信息 -->
            <div th:replace="system/qushiquerenpici/modal_edit::pici_edit"></div>

        </div>
    </div>
    <th:block th:include="include :: footer" />
     <th:block th:include="include :: datetimepicker-js" />
     <script th:src="@{/js/system/qushiquerenpici/customqushiquerenpici.js?v=1.0}"></script>

</body>
</html>